package com.itheima.stock.mapper;

import com.itheima.stock.pojo.entity.StockBusiness;
import com.itheima.stock.pojo.vo.StockDescribeInfo;
import com.itheima.stock.pojo.vo.StockSearchInfo;

import java.util.List;

/**
* @author 13975
* @description 针对表【stock_business(主营业务表)】的数据库操作Mapper
* @createDate 2024-04-21 19:31:27
* @Entity com.itheima.stock.pojo.entity.StockBusiness
*/
public interface StockBusinessMapper {

    int deleteByPrimaryKey(String id);

    int insert(StockBusiness record);

    int insertSelective(StockBusiness record);

    StockBusiness selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(StockBusiness record);

    int updateByPrimaryKey(StockBusiness record);

    /**
     * 获取所有A股个股的编码集合
     * @return
     */
    List<String> getAllStockCode();


    /**
     * 模糊搜索，根据传入的股票代码模糊搜索股票数据
     * @param code
     * @return
     */
    List<StockSearchInfo> searchStock(String code);

    /**
     * 个股主营业务查询
     * @param code
     * @return
     */
    StockDescribeInfo getStockDescribe(String code);
}
